<?php

/*
 * Template Lite plugin converted from Smarty
 * -------------------------------------------------------------
 * Type:     function
 * Name:     debug
 * Version:  1.0
 * Date:     July 1, 2002
 * Author:	 Monte Ohrt <monte@ispi.net>
 * Purpose:  popup debug window
 * -------------------------------------------------------------
 */
function tpl_compiler_debug($params, &$tpl)
{
	if ($params['output']) {
		$debug_output = '$this->assign("_templatelite_debug_output", ' . $params['output'] . ');';
	} else {
		$debug_output = "";
	}

	if (!function_exists("generate_compiler_debug_output")) {
		require iTEMPLATE_DIR . "/internal/template_generate_debug_output.php";
	}
	$debug_output .= template_generate_debug_output($tpl);
	return $debug_output;
}
